package aorise.com.frame.ui.main;

import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import aorise.com.frame.R;
import aorise.com.frame.base.ActivityActionBarClick;
import aorise.com.frame.base.BaseFragment;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import butterknife.Unbinder;

/**
 * @author zhangliwen
 * @date 2019/11/11.
 * description：
 */
public class HomeFragment extends BaseFragment  implements ActivityActionBarClick {
    private static final String TAG = HomeFragment.class.getSimpleName();
    Unbinder unbinder;
    @BindView(R.id.actionbar)
    View actionBarView;
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        View inflate = inflater.inflate(R.layout.fragment_home, container, false);
        unbinder = ButterKnife.bind(this, inflate);
        initActionBar(actionBarView, this);
        getActionbarTitleView(getActivity()).setText("个人信息");
        return inflate;
    }

    @Override
    public void onResume() {
        super.onResume();
    }



    @Override
    public void onHiddenChanged(boolean hidden) {
        super.onHiddenChanged(hidden);
        Log.i(TAG, "onHiddenChanged: "+hidden);
        if (!hidden) {
            // 在最前端显示 相当于调用了onResume();
        }else {
            // 不在最前端显示 相当于调用了onPause();
        }
    }

    public void initViews() {
    }



    @OnClick({})
    public void onViewClicked(View view) {
//        Intent mIntent = new Intent();
//        switch (view.getId()) {
//            case R.id.ll_company_query://企业查询
//                if (!bool_CompanyQuery) {
//                    ToastUtils.show("权限不足!");
//                    return;
//                }
//                setCompanyQueryIntent(mIntent);
//                startActivity(mIntent);
//                break;
//        }

    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        unbinder.unbind();

    }

    @Override
    public void onBackClick() {

    }

    @Override
    public void onMenuClick() {

    }
}
